package routers

import (
	"dispatch-system/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.CtrlGet("/", (*controllers.MainController).Get)
	beego.CtrlPost("/order", (*controllers.DispatchSystemController).CreateOrder)
	beego.CtrlGet("/taxi/rankings", (*controllers.DispatchSystemController).GetRankings)
	beego.CtrlPost("/taxi", (*controllers.DispatchSystemController).AddTaxi)
}
